
/** 列表动画 左方划入*/
@keyframes listFromLeftIn {
    0%{
        transform: translate(-300px, 0);
    }
}

@keyframes  headerFromUpIn{
    0%{
        transform: translate(0, -300px);
    }
}

/** 编辑区动画 下方划入*/
@keyframes esFromDownIn {

    0%{
        transform: translate(0, 300px);
    }
}

.main{
    width: 80%;
    height: 75%;
    box-shadow: 0 10px 12px #d9dee2;
}

.list-container{
    width: 25%;
    height: 100%;
    flex-direction: column;
    border-right: 1px solid #edf5f8;
    position: relative;
}

.list-container > div{
    width: 100%;
    height: 100%;
    animation: listFromLeftIn .5s;
    background-color: #fff;
}

.user-list ul li{
    overflow: hidden;
}

.user-list ul li.active{
    border-left: 3px solid #34bebc;
    background-color: #edf5f8;
}

.user-list .img-container{
    width: 35px;
    height: 60px;
    margin-left: 20px;
    flex-shrink: 0;
    align-items: center;
    cursor: pointer;
}

.user-list .active .img-container{
    margin-left: 17px;
}

.user-list .name-content{
    width: 100%;
    margin-left: 10px;
    padding-right: 20px;
    overflow: hidden;
    flex-direction: column;
    flex-grow: 1;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.user-list .name-content .user-unread{
    position: absolute;
    top: 0;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #34bebc;
    background-color: #edf5f8;
    text-align: center;
    line-height: 30px;
}

.user-list .name-content div:nth-child(1){
    font-size: 14px;
    color: #5f7290;
}

.user-list .name-content div:nth-child(2){
    font-size: 12px;
    color: #617289;
}

.nav-container{
    height: 60px;
    border-bottom: 1px solid #edf5f8;
    justify-content: space-between;
    align-items: center;
}

.nav-container i{
    cursor: pointer;
    color: #86a6b6;
}

.nav-container .about-me{
    margin-left: 20px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.nav-container .about-me .my-name{
    width: 150px;
    color: #5f7290;
    font-size: 14px;
    margin-left: 5px;
    padding-left: 5px;
}

.nav-container .about-me .edit-my-name{
    line-height: 35px;
    height: 35px;
    background-color: #edf5f8;
    border-radius: 5px;
    outline: none;
    border: none;
    overflow: hidden;
    cursor: auto;
}

.nav-container .search{
    margin-right: 20px;
}

.nav-container > .search > i:last-child{
    margin-left:20px;
}

.dialogue-container{
    width: 75%;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
}

.header-nav{
    height: 60px;
    background-color: #fff;
    flex-shrink: 0;
    justify-content: space-between;
    align-items: center;
    animation: headerFromUpIn .5s;
}

.header-nav .avatar{
    align-items: center;
}

.header-nav .avatar .img-container{
    height: 35px;
    margin-left: 20px;
}

.header-nav .avatar .name{
    color: #5f7290;
    margin-left: 10px;
}

.dialogue-container .menu-container{
    margin-right: 20px;
    color: #86a6b6;
}

.dialogue-container .menu-container i{
    cursor: pointer;
}

.dialogue-container .menu-container i:last-child{
    margin-left: 30px;
}

.dialogue-container .menu-container i:nth-last-child(2){
    margin-left: 25px;
}

.dialogue-container .dialogue{
    height: 100%;
    background-color: #edf5f8;
    flex-direction: column;
    overflow: auto;
}

.dialogue-container .dialogue .dialogue-middle{
    padding-bottom: 20px;
}

.dialogue-container .dialogue .dialogue-middle> div{
    margin-top: 30px;
    align-items: flex-start;
    height: auto;
}

.dialogue-container .arrow{
    width: 0px;
    height: 0px;
    border-top:4px solid transparent;
    border-bottom: 4px solid transparent;
    margin-top: 15px;
}

.dialogue-container .content{
    min-height: 22px;
    min-width: 20px;
    max-width: 330px;
    font-size: 13px;
    padding: 10px;
    border-radius: 18px;
    align-items: center;
    word-break: break-all;
    word-wrap: break-word;
}

.dialogue-container .dialogue .dialogue-right{
    flex-direction: row-reverse;
}

.dialogue-right .img-container{
    margin-right: 45px;
    margin-left: 5px;
}

.dialogue-right .arrow{
    border-left: 5px solid #34bebc;
}

.dialogue-right .content{
    margin-left: 20px;
    background-color: #34bebc;
}

.dialogue-container .dialogue .dialogue-left{

}

.dialogue-left .img-container{
    margin-left: 20px;
    margin-right: 5px;
}

.dialogue-left .arrow{
    border-right: 5px solid #d7e4f3;
}

.dialogue-left .content{
    margin-right: 45px;
    background-color: #d7e4f3;
}

.edit-send{
    height: 90px;
    background-color: #fff;
    flex-shrink: 0;
    align-items: center;
    animation: esFromDownIn .5s;
}

.edit-send i{
    cursor: pointer;
}

.send-menu{
    color: #86a6b6;
    flex-shrink: 0;
    margin-left: 20px;
}

.send-menu i:last-child{
    margin-left: 20px;
}

.edit-text{
    width: 100%;
    height: 40px;
    font-size: 15px;
    padding: 0 25px;
    margin-left: 20px;
    outline: none;
    border-style: none;
    border-radius: 20px;
    resize: none;
    overflow: hidden;
    background-color: #edf5f8;
}

.dialogue-container .send-btn{
    color: #86a6b6;
    flex-shrink: 0;
    margin-left: 10px;
    margin-right: 30px;
}